//
//  MXCreateBeltController.m
//  MXUserSys
//
//  Created by 王启颖 on 2018/10/12.
//  Copyright © 2018年 王启颖. All rights reserved.
//

#import "MXCreateBeltController.h"
#import "MXCreateBeltView.h"

@interface MXCreateBeltController ()
@property(nonatomic,strong)MXCreateBeltView *createBeltView;
@end

@implementation MXCreateBeltController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"创建花带";
    
    [self createBeltView];
}

- (void)setModel:(MXHomePageModel *)model{
    _model = model;
    self.createBeltView.model = self.model;
    self.title = @"修改花带";
}

#pragma mark - 懒加载 -
-(MXCreateBeltView *)createBeltView{
    if (!_createBeltView) {
        MXCreateBeltView *view = [MXCreateBeltView initMXCreateBeltView];
        view.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
        view.viewController = self;
        view.navigationController = self.navigationController;
        _createBeltView = view;
        [self.view addSubview:_createBeltView];
    }
    return _createBeltView;
}




@end
